﻿using SD.Infrastructure.DTOBase;
using SlamDunk.MES.IAppService.DTOs.Outputs.FoundationContext;
using System;
using System.Runtime.Serialization;

namespace SlamDunk.MES.IAppService.DTOs.Outputs.ExecutionContext
{
    /// <summary>
    /// 工单参数要求数据传输对象
    /// </summary>
    [DataContract]
    public class WorkOrderParameterAskInfo : BaseDTO
    {
        #region 对应变量编号 —— string RelatedVariableNo
        /// <summary>
        /// 对应变量编号
        /// </summary>
        [DataMember]
        public string RelatedVariableNo { get; set; }
        #endregion

        #region 标准值 —— decimal StandardValue
        /// <summary>
        /// 标准值
        /// </summary>
        [DataMember]
        public decimal StandardValue { get; set; }
        #endregion

        #region 最大值 —— decimal? MaxValue
        /// <summary>
        /// 最大值
        /// </summary>
        [DataMember]
        public decimal? MaxValue { get; set; }
        #endregion

        #region 最小值 —— decimal? MinValue
        /// <summary>
        /// 最小值
        /// </summary>
        [DataMember]
        public decimal? MinValue { get; set; }
        #endregion

        #region 值单位编号 —— string ValueUnitNo
        /// <summary>
        /// 值单位编号
        /// </summary>
        [DataMember]
        public string ValueUnitNo { get; set; }
        #endregion

        #region 工厂模型Id —— Guid? FacilityId
        /// <summary>
        /// 工厂模型Id
        /// </summary>
        [DataMember]
        public Guid? FacilityId { get; set; }
        #endregion

        #region 排序 —— int Sort
        /// <summary>
        /// 排序
        /// </summary>
        [DataMember]
        public int Sort { get; set; }
        #endregion

        #region 描述 —— string Description
        /// <summary>
        /// 描述
        /// </summary>
        [DataMember]
        public string Description { get; set; }
        #endregion


        //导航属性

        #region 导航属性 - 工厂模型 —— FacilityInfo FacilityInfo
        /// <summary>
        /// 导航属性 - 工厂模型
        /// </summary>
        [DataMember]
        public FacilityInfo FacilityInfo { get; set; }
        #endregion
    }
}
